

//modify the appropriate fields in linux/include/asm-386/unistd.h
//so as to be able to utilize the _syscallN() macros in your user-application.

//unistd;

# include<linux/include/asm-386/unistd.h>
# include<include/linux/syscall_fail.h>

int main(int argc, char *argv[])
{

					struct syscall_failure* calls;
					int ret;

					calls=(struct syscall_failure*)malloc(5*sizeof(struct syscall_failure));

					calls[0].syscall_nr=;//MACROS frm unistd
					calls[0].error=-2;
					fail(2, 1, calls);
					//fail();//if you call for the second time -- error

					getpid();
					getuid();
					ret=getpid();



						/*
					 Your program should loop several times, and in each iteration, it should do the following things:

					   1. Enable the fault injector for the i'th system call, where i is the loop index.
					   2. Make N system calls: any number of system calls you want, where N is the
						   total number of iterations. Verify this with the linux command strace.
					   3. Check if the i'th system call fails.

						*/

}
